import request from '@/utils/request'
export const reqTrademark = (page, limit) => request.get(`/admin/product/baseTrademark/${page}/${limit}`);

export const reqAddOrUpdateTrademark = (data) => { 
    if (data.id) {
        return request.put('/admin/product/baseTrademark/update', data);
    } else { 
        return request.post('/admin/product/baseTrademark/save',data);
    }
}
export const reqDeleteTrademark = (id) => { 
    return request.delete(`/admin/product/baseTrademark/remove/${id}`);
}